﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:local="clr-namespace:OneStop.UI" x:Class="OneStop.UI.SaveProfile"
           Width="392" Height="135" 
           Title="Save Profile">
	<controls:ChildWindow.DataContext>
		<local:MainProvider/>
	</controls:ChildWindow.DataContext>
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <TextBlock Height="20" Margin="8,24,0,0" VerticalAlignment="Top" Text="Name:" TextWrapping="Wrap" HorizontalAlignment="Left" Width="53"/>
        <TextBox x:Name="ProfileName" Height="22" Margin="55,22,0,0" VerticalAlignment="Top" TextWrapping="Wrap" Text="{Binding ProfilePrimary.Name, Mode=TwoWay, UpdateSourceTrigger=Default}"/>
    </Grid>
</controls:ChildWindow>